package com.cy2;

/**
 * MyArrayList测试类
 *
 * @author CY
 * @date 2022/10/11 02:54
 **/
public class MyArrayListDemo {
    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        myArraylist.add(55);
        myArraylist.add(75);
        myArraylist.add(145);
        myArraylist.add(2, 85);

//        System.out.println(myArraylist.contains(85));
//        System.out.println(myArraylist.size());
        System.out.println(myArraylist.remove(85));
//        myArraylist.clear();
        try {
            System.out.println(myArraylist.size());
        } catch (Exception e) {
            e.printStackTrace();
        }


        myArraylist.display();

    }

}
